<?php

error_reporting(0);

require_once("perso.class.php");

$perso = new Perso($_POST);
$perso->makeImage();

echo json_encode(array("image" => $perso->filename, 
		       "link" => "http://aimxhaisse.com/dofuspic/images/" . $perso->id . ".png"));
